<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewMedicamentoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewMedicamentoLabel_id}"/>
                    <h:outputText value="#{medicamentoController.selected.id}" title="#{bundle.ViewMedicamentoTitle_id}"/>
                    <h:outputText value="#{bundle.ViewMedicamentoLabel_descripcion}"/>
                    <h:outputText value="#{medicamentoController.selected.descripcion}" title="#{bundle.ViewMedicamentoTitle_descripcion}"/>
                    <h:outputText value="#{bundle.ViewMedicamentoLabel_stockActual}"/>
                    <h:outputText value="#{medicamentoController.selected.stockActual}" title="#{bundle.ViewMedicamentoTitle_stockActual}"/>
                    <h:outputText value="#{bundle.ViewMedicamentoLabel_estado}"/>
                    <h:outputText value="#{medicamentoController.selected.estado}" title="#{bundle.ViewMedicamentoTitle_estado}"/>
                    <h:outputText value="#{bundle.ViewMedicamentoLabel_vencimiento}"/>
                    <h:outputText value="#{medicamentoController.selected.vencimiento}" title="#{bundle.ViewMedicamentoTitle_vencimiento}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{medicamentoController.destroyAndView}" value="#{bundle.ViewMedicamentoDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewMedicamentoEditLink}"/>
                <br />
                <h:commandLink action="#{medicamentoController.prepareCreate}" value="#{bundle.ViewMedicamentoCreateLink}" />
                <br />
                <h:commandLink action="#{medicamentoController.prepareList}" value="#{bundle.ViewMedicamentoShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewMedicamentoIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
